public class ConcreteComponent extends Component {
    @Override
    public double cost() {
        return 10.0;
    }
}